//1、引入mysql模块
const mysql = require('mysql');

// 2、创建数据库连接对象
let conn = mysql.createConnection({
    host:'localhost',
    user:'root',
    password:'admin',
    database:'yoga'
});
// 3、抛出conn数据库连接对象conn
module.exports = conn;